from django.conf.urls.defaults import *
from svndiffview import settings

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^mySite/', include('mySite.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    (r'^$', 'django.views.generic.simple.direct_to_template',
     {'template': 'home.html'}),
     (r'^browse/$', 'svndiffview.views.views.browse',),
     (r'^diff/(?P<num_revision>[0-9]+)/$', 'svndiffview.views.views.diff',),
     
    (r'^media/(?P<path>.*)$', 'django.views.static.serve',
     {'document_root' : settings.PROJECT_ROOT+'/media'}),

    # Uncomment the next line to enable the admin:
    # (r'^admin/(.*)', admin.site.root),
    
)
